﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Group.Search" %>
<asp:Literal ID="lLCount" Text="15" runat="server" Visible="false"/>
<div class="common">
<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1>
								<%if (show == "0")
								{%>
								<%=GetText("AS165")%>
								<%if (key.Trim() != "")
								{%> 
								<%=GetText("AS167",new string[]{key})%>
								<%} %> 
								<%}
								else
								{%><%=GetText("AS166")%><%} %>
							</h1>
							</div>
							<div class="submenuN_button"><a class="naddbtn btnspec" href="/groups/create-group.htm" style="text-decoration:none"><span>&nbsp;&nbsp;&nbsp;<%=GetText("GP200")%>&nbsp;&nbsp;&nbsp;</span></a></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Right">
						<div class="Center9001Content">
							<div class="group_area">
								<div>
									<div class="floatl"><%=gtype == "3" ? GetText("AS091") : GetText("C0016")%> <select id="selLearnL" onchange="searl()">
										<option value="all" <%=(Learn==""?"selected":"")%>><%=GetText("C0027")%></option>
										<%=GetLanguageSelect(Learn)%></select>&nbsp;&nbsp;&nbsp;&nbsp;<%=GetText("GP012")%> <select id="selGroupType"  onchange="searl()">
									<option value="0" <%=(gtype=="0"?"selected":"")%>><%=GetText("C0024")%></option>
									<option value="1" <%=(gtype=="1"?"selected":"")%>><%=GetText("GP013")%></option>
									<option value="2" <%=(gtype=="2"?"selected":"")%>><%=GetText("GP014")%></option>
									<option value="3" <%=(gtype=="3"?"selected":"")%>><%=GetText("C0087")%></option>
									</select>
									</div>
									<div class="floatr"><%=GetText("GP005", new string[] { RecordCount.ToString() })%></div>
									<div class="clear"></div>
								</div>
								<% if(show=="1")
									{ %>
									<div class="pink12"><%=GetText("AS168")%></div>
									<%} %>
								<div id="myList" class="margin20T">
									<asp:Repeater ID="repGroup" runat="server">
										<ItemTemplate>
											<div class="Default_list">
												 <div class="Default_list_left">
													<div class="pic75"><%#Eval("Ty").ToString() == "0" ? (Eval("ImgUrlPath").ToString() == "" ? "<a class='photo_75' href='/groups/" + Eval("GID").ToString() + "' title='" + HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) + "'><img src=\"/Images/No_pic.gif\" /></a>" : "<a class='photo_75' href='/groups/" + Eval("GID").ToString() + "' title='" + HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) + "'><img src=\"/UploadImages/Groups/" + Eval("GroupID").ToString() + "_2.jpg\" /></a>") : ""%>
													<%#Eval("Ty").ToString() != "0" ? ("<a class='photo_75' href='" + WWWHost + "/" + Eval("Memberno") + ".htm'>" + (Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>" : "<img src=\"" + Eval("Avatar").ToString()+ "\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>") + "</a>") : ""%>
													</div>
												</div>
												<div class="Default_list_right">
													<div class="default_list_right1">
														<%#Eval("Ty").ToString() == "0" ? ("<div class='text14'><a href='" + WWWHost + "/groups/" + Eval("GID").ToString() + "' title='" + HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) + "'>" + Eval("Title").ToString() + "</a></div><div class='grey11 margin5'>" + GetText("GP026") + ": " + (Eval("GroupType").ToString() == "1" ? "<A href='/groups/learn-all-1-1-1.htm'>" + GetText("GP013") + "</a>" : (Eval("GroupType").ToString() == "2" ? "<A href='/groups/learn-all-2-1-1.htm'>" + GetText("GP014") + "</a>" : "<A href='/groups/all-3-1-1.htm'>" + GetText("C0087") + "</a>")) + " - " + (Eval("GroupType").ToString() != "3" ? (BLF.StaticData.HaveLanguageImage(Eval("Language1").ToString()) ? Eval("Language1", "<a href='" + WWWHost + "/groups/learn-" + Eval("Language1") + "-0-1-1.htm'><img src=\"/images/language_{0}.gif\" border='0' title='" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(Eval("Language1").ToString()) }) + "' align='absmiddle' /></a>") : "") + " <a href='" + WWWHost + "/groups/learn-" + Eval("Language1") + "-0-1-1.htm'>" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(Eval("Language1").ToString()) }) + "</a>" : (BLF.StaticData.HaveLanguageImage(Eval("Language2").ToString()) ? Eval("Language2", "<a href='" + WWWHost + "/groups/" + Eval("Language2") + "-3-1-1.htm'><img src=\"/images/language_{0}.gif\" border='0' title='" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(Eval("Language2").ToString()) }) + "' align='absmiddle' /></a>") : "") + " <a href='" + WWWHost + "/groups/" + Eval("Language2") + "-3-1-1.htm'>" + GetText("C2018", new string[] { BLF.StaticData.GetLanguageText(Eval("Language2").ToString()) }) + "</a>") + "<br />" + GetText("C2006") + ": " + Eval("Members") + " members</div>") : ""%>
														<%#Eval("Ty").ToString() == "1" ? ("<div class='group_forum_acontent'><a href='" + WWWHost + "/groups/" + Eval("GID") + "/topic/" + Eval("CdID") + ".htm'>" + Eval("Title") + "</a><div class='margin5'>" + ((Eval("NewMemberno") != null && Eval("NewMemberno").ToString() != "") ? GetText("C0090", new string[] { "<a href='" + WWWHost + "/" + Eval("Memberno") + ".htm'>" + Eval("NickName") + "</a>" }) + " - " + GetText("GP011", new string[] { "<a href='" + WWWHost + "/" + Eval("NewMemberno") + ".htm'>" + Eval("NewNickName") + "</a>", (FormatDiffDate(GetText("C0035"), Eval("DiffDate").ToString())) }) : GetText("GP010", new string[] { "<a href='" + WWWHost + "/" + Eval("Memberno") + ".htm'>" + Eval("NickName") + "</a>", (FormatDiffDate(GetText("C0035"), Eval("DiffDate").ToString())) })) + "</div></div>") : ""%>
													</div>
													<div class="clear"></div>
												</div>
												<div class="clear"></div>
											</div>
										</ItemTemplate>
									</asp:Repeater>
									<div class="clear"></div>
								</div>
								<div id="divPage" class="page_num">
								<%=CreatePageNav(RecordCount, int.Parse(lLCount.Text), pageIndex,
								 "", string.Format("<span class='page_none grey10'><a href='{4}/groups/search/{2}-{1}-{0}-$I$.htm'>{3}</a></span>&nbsp;", HttpUtility.UrlEncode((gtype == "" ? "0" : gtype)), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(key.Trim()), HttpUtility.UrlEncode(GetText("Prev")), WWWHost),
								 "", string.Format("<span class='page_none grey10'><a href='{4}/groups/search/{2}-{1}-{0}-$I$.htm'>{3}</a></span>&nbsp;", HttpUtility.UrlEncode((gtype == "" ? "0" : gtype)), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(key.Trim()), HttpUtility.UrlEncode(GetText("Next")), WWWHost),
								 string.Format("<span class='page_select'>{0}</span>&nbsp;", pageIndex),
								 string.Format("<span class='page_none grey10'><a href='{3}/groups/search/{2}-{1}-{0}-$I$.htm'>$I$</a></span>&nbsp;", HttpUtility.UrlEncode((gtype == "" ? "0" : gtype)), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(key.Trim()), WWWHost))%>   
								</div>
							</div>
						</div>
					</div>
					<div class="Center9001Left">
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2014")%></h4>
								<div class="layer_contentA5">
									<ul class="common_right">
									<asp:Repeater ID="rptLL" runat="server">
											<ItemTemplate>										
												<li><a href='<%=WWWHost%>/groups/learn-<%#Eval("LanguageValue")%>-0-1-1.htm' title="<%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%>"><img src='/images/language_<%#Eval("LanguageValue")%>.gif' border="0" align='absmiddle' /></a> <a href='<%=WWWHost%>/groups/learn-<%#Eval("LanguageValue")%>-0-1-1.htm'><%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%></a></li>
											</ItemTemplate>
								</asp:Repeater>
									</ul>
								</div>
								<div class="margin5" style="text-align: right;"><a href="<%=WWWHost %>/groups/categories.htm"><%=GetText("C0028")%></a></div>
							</div>
						</div>
						<%if (tmList.Count != 0)
		{%>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("GP021")%></h4>
								<div class="layer_contentA5">
								
									<asp:Repeater ID="repTopic" runat="server">
								<ItemTemplate>
									
									<div class="common_right_pic_list">

										<div class="common_right_pic_listPIC"><div class="picsp"><a class="photo_sp" href="<%#WWWHost %>/<%#Eval("Memberno") %>.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>" : "<img src=\"" + Eval("Avatar").ToString()+ "\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>"%></a></div></div>
										<div class="common_right_pic_listCON"><a href="/groups/<%#Eval("GID") %>/topic/<%#Eval("FID") %>.htm"><%#HttpUtility.HtmlAttributeEncode(Eval("Title").ToString())%></a> <span class="grey12" dir="ltr">(<%#Eval("Topics")%>)</span></div>
										<div class="clear"></div>
									</div>
									</ItemTemplate>
									</asp:Repeater>
									
								</div>
							</div>
						</div>
					<%} %>
						<div id="ad_site" class="margin20T">
						<script type="text/javascript">
						  GA_googleFillSlot("all_pages_right160x600");
						</script>
						</div>
					</div>
					<div class="clear"></div>
					<div class="margin10" style="text-align:center">
					<script type="text/javascript">
					  GA_googleFillSlot("all_pages_bottom728x90");
					</script>
					</div>
				</div>
			</div>
			<div id="body_right">
			</div>
			<div class="clear">
			</div>
		</div>
		<div id="body_900F">
		</div>
	</div>
</div>
<script>
var lhost="<%=WWWHost %>";
var key="<%=key %>";
</script>
